cmake_minimum_required(VERSION 3.23.0)

project(LightVisionFrameworkUnittest)

set(CMAKE_CXX_STANDARD 14)

include_directories(
    ${CMAKE_SOURCE_DIR}/3rd/googletest/googletest/include
    ${CMAKE_SOURCE_DIR}/include
)

link_directories(
    ${CMAKE_SOURCE_DIR}/build/lib
    ${CMAKE_SOURCE_DIR}/build/src
)

add_executable(unittest
    ${CMAKE_CURRENT_SOURCE_DIR}/main.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/common/tensor_ut.cc
)

target_link_libraries(unittest
    gmock
    gmock_main
    gtest
    gtest_main
    VisionCore
)

install(TARGETS unittest DESTINATION bin)